gtk4.git
14 years agothemingengine: Set current point to 0,0 when rendering rotated layout
Benjamin Otte [Thu, 12 May 2011 21:27:51 +0000 (23:27 +0200)]
themingengine: Set current point to 0,0 when rendering rotated layout

Otherwise the layout may move to who-knows-where

14 years agoAdd an initial migration chapter for GtkGrid
Matthias Clasen [Thu, 12 May 2011 03:55:54 +0000 (23:55 -0400)]
Add an initial migration chapter for GtkGrid

14 years agoAnother grid spacing reftest
Matthias Clasen [Wed, 11 May 2011 23:51:26 +0000 (19:51 -0400)]
Another grid spacing reftest

This one checks that empty rows/columns don't affect layout.

14 years agoFix annotation for Gtk.TreeView.enable_model_drag_source
Micah Carrick [Wed, 11 May 2011 20:14:14 +0000 (16:14 -0400)]
Fix annotation for Gtk.TreeView.enable_model_drag_source

https://bugzilla.gnome.org/show_bug.cgi?id=649979

14 years agoAdd some reftests comparing aspects of grid and box spacing
Matthias Clasen [Wed, 11 May 2011 17:48:00 +0000 (13:48 -0400)]
Add some reftests comparing aspects of grid and box spacing

14 years agopaned: Be careful about showing windows
Benjamin Otte [Tue, 10 May 2011 22:46:08 +0000 (00:46 +0200)]
paned: Be careful about showing windows

The previous code failed to account for all child visibility and paned
mapedness invariants which could cause stray GDK windows to appear.
Not good.

Credit goes to Xan for triggering it.

14 years agoGtkAssistant: make the content expand
Matthias Clasen [Tue, 10 May 2011 21:57:21 +0000 (17:57 -0400)]
GtkAssistant: make the content expand

Its all about the content, so make sure the content fills
the available space.

14 years agoFix two small translation bugs
Friedel Wolff [Tue, 10 May 2011 10:44:33 +0000 (12:44 +0200)]
Fix two small translation bugs

14 years agoreftests: Add test for undersized children of GtkPaned
Benjamin Otte [Mon, 9 May 2011 23:25:26 +0000 (01:25 +0200)]
reftests: Add test for undersized children of GtkPaned

Tests the recent fixes done in 206b9f940d632dd0ed10ab8046777956872555eb
and 6bda6f0c580cbdc5d154bb8e249260d1cdc1b88b

14 years agoUpdated Slovenian translation
Matej Urbančič [Mon, 9 May 2011 18:22:00 +0000 (20:22 +0200)]
Updated Slovenian translation

14 years agoUpdated Spanish translation
Jorge González [Mon, 9 May 2011 17:39:39 +0000 (19:39 +0200)]
Updated Spanish translation

14 years agopaned: Ensure children aren't underallocated
Benjamin Otte [Mon, 9 May 2011 16:55:13 +0000 (18:55 +0200)]
paned: Ensure children aren't underallocated

Instead, allocate them a proper size and just clip them using the window
we added for them in the last commit.

14 years agopaned: Create a GDK window for every child
Benjamin Otte [Mon, 9 May 2011 14:19:06 +0000 (16:19 +0200)]
paned: Create a GDK window for every child

We need the window to clip drawing. Otherwise we cannot allow
undersizing without doing underallocations.

14 years agoreftests: Add CSS file for alignment test
Benjamin Otte [Mon, 9 May 2011 11:23:52 +0000 (13:23 +0200)]
reftests: Add CSS file for alignment test

We need to force arrow scaling to 1.0 to get the alignment right.

14 years agoAdd missing gtk_widget_override_* annotations
John Stowers [Mon, 9 May 2011 10:43:30 +0000 (22:43 +1200)]
Add missing gtk_widget_override_* annotations

https://bugzilla.gnome.org/show_bug.cgi?id=649779

14 years agoUpdated Galician translations
Fran Diéguez [Mon, 9 May 2011 11:08:53 +0000 (13:08 +0200)]
Updated Galician translations

14 years agoDueling arrow positioning fixes...
Matthias Clasen [Mon, 9 May 2011 01:33:12 +0000 (21:33 -0400)]
Dueling arrow positioning fixes...

Revert my fix, which conflicted with Benjamins fix for the same
issue.

14 years agoFix up the misc-alignment test
Matthias Clasen [Mon, 9 May 2011 01:24:21 +0000 (21:24 -0400)]
Fix up the misc-alignment test

The new-style ui file had some left-over GtkMisc properties
in it.

14 years agoFix a arrow positioning
Matthias Clasen [Mon, 9 May 2011 01:16:05 +0000 (21:16 -0400)]
Fix a arrow positioning

This gets the misc-alignment test for arrows closer to
not failing.

14 years agoreftests: Modify test to ensure identical output
Benjamin Otte [Sun, 8 May 2011 23:15:17 +0000 (01:15 +0200)]
reftests: Modify test to ensure identical output

GtkArrow and the align properties use different methods (float vs int)
to center the arrow. If the size of the arrow is odd, this will cause a
rendering that differs by half a pixel. So we request an even size for
both the arrow and the container and everything works out.

14 years agoreftests: Add misc-alignment test to Makefile
Benjamin Otte [Sun, 8 May 2011 23:12:29 +0000 (01:12 +0200)]
reftests: Add misc-alignment test to Makefile

14 years agoreftests: Actually add toplevel vs popup testcase
Benjamin Otte [Sun, 8 May 2011 23:09:01 +0000 (01:09 +0200)]
reftests: Actually add toplevel vs popup testcase

Adds missing files from 79d1b11d0b3975c4927cd0f56c77aedd0933cb74 and
reverts eba4ca3e660b90470418a0340c46cbb1b0db546c.

14 years agoarrow: Don't include padding in computation of alignment
Benjamin Otte [Sun, 8 May 2011 23:06:54 +0000 (01:06 +0200)]
arrow: Don't include padding in computation of alignment

14 years agowayland: Track wayland API changes
Kristian Høgsberg [Sun, 8 May 2011 17:19:54 +0000 (13:19 -0400)]
wayland: Track wayland API changes

14 years agoUpdated Spanish translation
Jorge González [Sun, 8 May 2011 15:54:29 +0000 (17:54 +0200)]
Updated Spanish translation

14 years agoUpdated Spanish translation
Daniel Mustieles [Sun, 8 May 2011 15:33:59 +0000 (17:33 +0200)]
Updated Spanish translation

14 years agoUpdated Spanish translation
Daniel Mustieles [Sun, 8 May 2011 15:30:08 +0000 (17:30 +0200)]
Updated Spanish translation

14 years agoPost-release bump
Matthias Clasen [Sat, 7 May 2011 17:04:38 +0000 (13:04 -0400)]
Post-release bump

14 years ago3.1.4
Matthias Clasen [Sat, 7 May 2011 17:01:16 +0000 (13:01 -0400)]
3.1.4

14 years agoAnother distcheck fix
Matthias Clasen [Sat, 7 May 2011 17:00:58 +0000 (13:00 -0400)]
Another distcheck fix

14 years agoWork around testsuite failures for distcheck
Matthias Clasen [Sat, 7 May 2011 16:59:09 +0000 (12:59 -0400)]
Work around testsuite failures for distcheck

14 years agoFix a typo in !HAVE_XCURSOR code paths
Matthias Clasen [Sat, 7 May 2011 16:01:04 +0000 (12:01 -0400)]
Fix a typo in !HAVE_XCURSOR code paths

Patch by Victor Oliveira,
http://bugzilla.gnome.org/show_bug.cgi?id=649665

14 years agoUpdated Spanish translation
Daniel Mustieles [Sat, 7 May 2011 10:39:45 +0000 (12:39 +0200)]
Updated Spanish translation

14 years agoDistcheck fixes
Matthias Clasen [Sat, 7 May 2011 04:07:07 +0000 (00:07 -0400)]
Distcheck fixes

14 years agoDrop missing tests
Matthias Clasen [Sat, 7 May 2011 04:03:13 +0000 (00:03 -0400)]
Drop missing tests

14 years agoAdd a new forgotten symbol
Matthias Clasen [Sat, 7 May 2011 03:51:52 +0000 (23:51 -0400)]
Add a new forgotten symbol

14 years agoMore updates
Matthias Clasen [Sat, 7 May 2011 03:46:18 +0000 (23:46 -0400)]
More updates

14 years agoUpdate the NEWS for 3.1.4
Matthias Clasen [Sat, 7 May 2011 03:34:49 +0000 (23:34 -0400)]
Update the NEWS for 3.1.4

14 years agoAdd a lock button widget
Matthias Clasen [Sat, 30 Apr 2011 03:40:47 +0000 (23:40 -0400)]
Add a lock button widget

This is a special-purpose button that can be used together with
GPermission objects to control the sensitivity of system settings.

Suitable permission objects can e.g. be obtained from PolicyKit.

http://bugzilla.gnome.org/show_bug.cgi?id=626457

14 years agoRemove outdated comments
Matthias Clasen [Fri, 6 May 2011 20:31:36 +0000 (16:31 -0400)]
Remove outdated comments

Neither GdkColors nor GdkRGBAs are ever 'allocated' nowadays.

14 years agoAdding more traditional checkered background to testtextview.
Tristan Van Berkom [Mon, 14 Feb 2011 07:47:57 +0000 (16:47 +0900)]
Adding more traditional checkered background to testtextview.

14 years agoAdded Since 3.2 annotations for new GdkRGBA properties.
Tristan Van Berkom [Mon, 14 Feb 2011 07:18:35 +0000 (16:18 +0900)]
Added Since 3.2 annotations for new GdkRGBA properties.

14 years agoAdded internal GdkRGBA support for GtkTextTag::paragraph-background-rgba
Tristan Van Berkom [Mon, 14 Feb 2011 06:27:42 +0000 (15:27 +0900)]
Added internal GdkRGBA support for GtkTextTag::paragraph-background-rgba

Added the remaining implementation bits for rendering paragraph backgrounds
with rgba values and updated the test case.

14 years agoFixed GtkTextTag to sync the GdkColors with the new GdkRGBA values for backwards...
Tristan Van Berkom [Mon, 14 Feb 2011 05:27:28 +0000 (14:27 +0900)]
Fixed GtkTextTag to sync the GdkColors with the new GdkRGBA values for backwards compatability.

14 years agoHandled error_color with GdkRGBA in gtktextdisplay.c.
Tristan Van Berkom [Mon, 14 Feb 2011 05:22:27 +0000 (14:22 +0900)]
Handled error_color with GdkRGBA in gtktextdisplay.c.

14 years agoFixed textview rendering regression.
Tristan Van Berkom [Mon, 14 Feb 2011 05:00:15 +0000 (14:00 +0900)]
Fixed textview rendering regression.

Background color was not painted on the whole tagged segment after
line breaking, this was due to the default ->prepare_run() function
wiping the internal PangoColors clean... fixed this by unconditionally
setting local rgba colors from prepare_run instead of comparing them
and bailing out.

14 years agoAdded GdkRGBA properties to GtkTextTag.
Tristan Van Berkom [Wed, 9 Feb 2011 14:41:39 +0000 (23:41 +0900)]
Added GdkRGBA properties to GtkTextTag.

This now allows text view to render text with alpha values in
the text foreground and backgrounds, the work is almost complete,
currently the error-underline-color is still a GdkColor style property
and since we use only GdkRGBA for rendering it needs to be converted
and applied, probably a new rgba version of the style property should
also be introduced.

This commit adds tests/testtextview that must be run from the tests/
directory to show translucent text in action.

14 years agotestassistant: don't use deprecated functions
Cosimo Cecchi [Fri, 6 May 2011 20:08:09 +0000 (16:08 -0400)]
testassistant: don't use deprecated functions

14 years agoprogressbar: fetch the padding without the trough style class
Cosimo Cecchi [Fri, 6 May 2011 18:53:09 +0000 (14:53 -0400)]
progressbar: fetch the padding without the trough style class

This is consistent with the rest of the widget, which uses only one
padding value.

https://bugzilla.gnome.org/show_bug.cgi?id=649593

14 years agocellrendererprogress: don't force drawing inside the border
Cosimo Cecchi [Fri, 6 May 2011 18:33:00 +0000 (14:33 -0400)]
cellrendererprogress: don't force drawing inside the border

The progressbar is composed by two different rendered areas: the trough
(i.e. the non-filled part of the bar) and the bar itself.

The bar should be able to fill the whole height/width of the trough
without resorting to nasty hacks in the theme, and we can control the
amount of space between the bar and the trough with the padding already.

https://bugzilla.gnome.org/show_bug.cgi?id=649593

14 years agogtk3-demo: assistant demo simplications
Matthias Clasen [Fri, 6 May 2011 18:55:58 +0000 (14:55 -0400)]
gtk3-demo: assistant demo simplications

Since header and sidebar images are no longer used, don't set them.

14 years agoGtkAssistant: an new style for assistants
Matthias Clasen [Sun, 17 Apr 2011 00:45:26 +0000 (20:45 -0400)]
GtkAssistant: an new style for assistants

GtkAssistant is widely recognized as a butt-ugly widget.

This commit changes its style to look more modern. We
deprecate the sidebar and header image properties and
don't show them anymore. Instead, page titles are arranged
in a sidebar, with the title of the current page shown
in highlighted style.

14 years agotestassistant: some more tests
Matthias Clasen [Sun, 17 Apr 2011 03:01:30 +0000 (23:01 -0400)]
testassistant: some more tests

14 years agoSilently allow child properties on grandchildren
Matthias Clasen [Tue, 26 Apr 2011 16:26:51 +0000 (12:26 -0400)]
Silently allow child properties on grandchildren

This commit simply removes some child->parent == container checks,
to add some flexibility for containers with 'inner structure'.
If these checks are considered useful, we can bring them back
with a is_child vfunc that allows container implementations to
decided who they consider legitimate child.

14 years agoAdd gtk_container_child_notify
Matthias Clasen [Sat, 16 Apr 2011 17:57:05 +0000 (13:57 -0400)]
Add gtk_container_child_notify

This is a variant of gtk_widget_child_notify() that takes an
explicit container, instead of relying on widget->parent to
be the correct container to use.

14 years agogtk-demo: Don't leave a dangling pointer to a destroyed widget
Matthias Clasen [Sat, 16 Apr 2011 17:42:24 +0000 (13:42 -0400)]
gtk-demo: Don't leave a dangling pointer to a destroyed widget

When destroying the assistant, clean up the static variable
that points to it.

14 years agoSome additional auto-mnemonic fixes
Matthias Clasen [Fri, 6 May 2011 18:04:50 +0000 (14:04 -0400)]
Some additional auto-mnemonic fixes

Previously, we would also show mnemonics if the user hits
Ctrl+Alt, even though Ctrl+Alt+<x> does not actually trigger.

14 years agoGtkWindow: set mnemonics visible on focus in if modifier is pressed
Rui Matos [Wed, 13 Apr 2011 10:26:55 +0000 (11:26 +0100)]
GtkWindow: set mnemonics visible on focus in if modifier is pressed

With gtk-auto-mnemonics on, we hide mnemonics on focus out. We should also
check if the modifier is pressed on focus in and if so, show mnemonics again.

https://bugzilla.gnome.org/show_bug.cgi?id=618815

14 years agoconfigure.ac: Indeed the minimum required version is 2.29.4, not 2.29.2
Javier Jardón [Fri, 6 May 2011 17:54:22 +0000 (18:54 +0100)]
configure.ac: Indeed the minimum required version is 2.29.4, not 2.29.2

14 years agoconfigure.ac: Bump glib minimum required version to 2.29.2
Javier Jardón [Fri, 6 May 2011 17:51:04 +0000 (18:51 +0100)]
configure.ac: Bump glib minimum required version to 2.29.2

As we are using the new g_test_fail() in the gtk-reftest

14 years agoRevert "arrow: Make minimum size 5px"
Benjamin Otte [Fri, 6 May 2011 17:35:40 +0000 (19:35 +0200)]
Revert "arrow: Make minimum size 5px"

This reverts commit 1c46e04f30e8b496ac0cc3ad830b4824e54c1e94.

The change broke too many widgets that relied on the size being
constant. A proper fix would require letting themes override the size.
That would probably also require letting themes specify the size
relative to font size.

14 years agoAdd an alignment property test
Matthias Clasen [Fri, 6 May 2011 02:21:59 +0000 (22:21 -0400)]
Add an alignment property test

This test compares GtkAlignment properties and GtkWidget margin and
alignment properties.

14 years agoExpand GtkMisc tests to cover arrows and images
Matthias Clasen [Fri, 6 May 2011 01:47:14 +0000 (21:47 -0400)]
Expand GtkMisc tests to cover arrows and images

This unveils something fishy with arrows.

14 years agoAdd a misc-alignment reftest
Matthias Clasen [Thu, 5 May 2011 21:53:12 +0000 (17:53 -0400)]
Add a misc-alignment reftest

This test compares GtkMisc properties and GtkWidget margin and
alignment properties.

14 years agoMore box<>grid comparison tests
Matthias Clasen [Thu, 5 May 2011 20:15:59 +0000 (16:15 -0400)]
More box<>grid comparison tests

Add a more complicated case with multiple expanding children.
Also, make the window a popup.

14 years agogtkicontheme: More explicitly note ownership transfers of duplicated string
Colin Walters [Thu, 5 May 2011 14:13:13 +0000 (10:13 -0400)]
gtkicontheme: More explicitly note ownership transfers of duplicated string

I was hunting a memory leak and couldn't find it; at least I'm
pretty sure all of these are OK.  But document things better
for the future.

Also use g_hash_table_replace in one more case for consistency.

https://bugzilla.gnome.org/show_bug.cgi?id=649457

14 years agoreftests: Add missing css file for grid-expand test
Benjamin Otte [Thu, 5 May 2011 17:34:31 +0000 (19:34 +0200)]
reftests: Add missing css file for grid-expand test

14 years agoreftests: Add testcase for label justify fix
Benjamin Otte [Thu, 5 May 2011 15:32:22 +0000 (17:32 +0200)]
reftests: Add testcase for label justify fix

14 years agolabel: Compute label offset properly for wrapped justified labels
Benjamin Otte [Thu, 5 May 2011 15:30:58 +0000 (17:30 +0200)]
label: Compute label offset properly for wrapped justified labels

label offsets were computed wrong for wrapped or ellipsized labels that
were right- or center-justified and had excess space available.

14 years agoreftests: Fix filename in makefile
Benjamin Otte [Thu, 5 May 2011 03:16:38 +0000 (05:16 +0200)]
reftests: Fix filename in makefile

14 years agoreftests: Add a test that ensures toplevels and popups render identical
Benjamin Otte [Thu, 5 May 2011 03:16:09 +0000 (05:16 +0200)]
reftests: Add a test that ensures toplevels and popups render identical

14 years agoreftests: Ensure we got a draw event before quitting the main loop
Benjamin Otte [Thu, 5 May 2011 03:13:34 +0000 (05:13 +0200)]
reftests: Ensure we got a draw event before quitting the main loop

14 years agoreftests: Add a hack to make toplevels work in various WMs
Benjamin Otte [Thu, 5 May 2011 02:29:56 +0000 (04:29 +0200)]
reftests: Add a hack to make toplevels work in various WMs

If we have a toplevel, and not a popup window, do wait an additional
0.5s to give the WM/server enough time to actually create the window.

This is a hack and there should be a better solution. But it works.

Please use POPUP windows for tests unless the test must use toplevel
windows.

14 years agoreftests: Plug a leak
Benjamin Otte [Thu, 5 May 2011 02:27:38 +0000 (04:27 +0200)]
reftests: Plug a leak

14 years agoreftests: Add test for box expand handling
Benjamin Otte [Wed, 4 May 2011 23:09:45 +0000 (01:09 +0200)]
reftests: Add test for box expand handling

14 years agoreftests: Add a test for grid expand flags
Benjamin Otte [Wed, 4 May 2011 18:12:44 +0000 (20:12 +0200)]
reftests: Add a test for grid expand flags

14 years agogtk/gtktrayicon-x11.c: Use GdkRGBA instead GdkColor
Javier Jardón [Mon, 2 May 2011 15:13:50 +0000 (16:13 +0100)]
gtk/gtktrayicon-x11.c: Use GdkRGBA instead GdkColor

14 years agoGtkButtonBox: add a non-homogeneous child property
Matthias Clasen [Thu, 5 May 2011 11:46:03 +0000 (07:46 -0400)]
GtkButtonBox: add a non-homogeneous child property

This makes it easier to add things like lock buttons in
dialogs. Part of #626457.

14 years agoFix box-packing test
Matthias Clasen [Thu, 5 May 2011 11:26:55 +0000 (07:26 -0400)]
Fix box-packing test

14 years agoExpand box-packing reftest
Matthias Clasen [Thu, 5 May 2011 02:58:32 +0000 (22:58 -0400)]
Expand box-packing reftest

Compare vexpand behavior, too.

14 years agoAdd a box-packing reftest
Matthias Clasen [Thu, 5 May 2011 00:38:38 +0000 (20:38 -0400)]
Add a box-packing reftest

This test compares GtkHBox expand handling with GtkGrid+GtkWidget::hexpand,
to ensure that replacing GtkHBox by GtkGrid works as intended.

14 years agoUpdated Spanish translation
Daniel Mustieles [Wed, 4 May 2011 20:46:27 +0000 (22:46 +0200)]
Updated Spanish translation

14 years agogdk/x11/gdkcursor-x11.c: Use GdkRGBA instead GdkColor
Javier Jardón [Mon, 2 May 2011 16:42:18 +0000 (17:42 +0100)]
gdk/x11/gdkcursor-x11.c: Use GdkRGBA instead GdkColor

14 years agoGdkWindow: remove unused variable
Kristian Rietveld [Wed, 4 May 2011 05:31:39 +0000 (07:31 +0200)]
GdkWindow: remove unused variable

14 years agoConvert the commit message into a README
Matthias Clasen [Tue, 3 May 2011 23:35:48 +0000 (19:35 -0400)]
Convert the commit message into a README

Not everybody thinks git grep is a great doc reader...

14 years agoGdkWindow: Fix gdk_window_set_[device_]cursor() issues with root/foreign windows
Carlos Garnacho [Tue, 3 May 2011 22:01:10 +0000 (00:01 +0200)]
GdkWindow: Fix gdk_window_set_[device_]cursor() issues with root/foreign windows

It could be the case that gdk_window_set_cursor() is called on
pointers not yet known to the device tracking code in GdkDisplay,
so update the cursor on all master pointers.

The code actually updating the cursor for the given window has
been refactored out to gdk_window_set_cursor_internal(), used
in gdk_window_set_device_cursor() as well, which makes it handle
root/foreign windows too.

https://bugzilla.gnome.org/show_bug.cgi?id=649313

14 years agogtkdnd: Add API that takes GIcon
Colin Walters [Tue, 3 May 2011 16:33:31 +0000 (12:33 -0400)]
gtkdnd: Add API that takes GIcon

This will be useful for me to port gnome-panel to gnome-menus 4, which
uses GAppInfo, which in turn returns icon references as GIcon.

https://bugzilla.gnome.org/show_bug.cgi?id=649295

14 years agogtkimageprivate: Drop unused theme_change_id
Colin Walters [Tue, 3 May 2011 15:04:56 +0000 (11:04 -0400)]
gtkimageprivate: Drop unused theme_change_id

14 years agoreftests: Add a --output option to the test runner
Benjamin Otte [Tue, 3 May 2011 12:03:25 +0000 (14:03 +0200)]
reftests: Add a --output option to the test runner

This argument specifies where to dump images instead of /tmp. It's not
hooked up to the test runner, so that one will continue to dump into
/tmp.

14 years agoreftests: Add test for low mnemonics
Benjamin Otte [Tue, 3 May 2011 10:05:45 +0000 (12:05 +0200)]
reftests: Add test for low mnemonics

Low mnemonics were invisible previously. This tests the fix from
9bb145a677c3c9fa3266ae6999414f441016d93f

14 years agoreftests: Test that nonresizable windows get the right size
Benjamin Otte [Tue, 3 May 2011 09:18:04 +0000 (11:18 +0200)]
reftests: Test that nonresizable windows get the right size

We want the default size, not the minimum one. This tests the fixes from
4f23dc34be1fd497cce84962798f7578e78a32c9

14 years agotests: Add a test for small ellipsized labels
Benjamin Otte [Fri, 22 Apr 2011 02:56:03 +0000 (04:56 +0200)]
tests: Add a test for small ellipsized labels

Tests the fix from bf413928611e004ae3b5a9f73ff9c777cb7e8e70

14 years agoreftests: Add grid-homogeneous test
Benjamin Otte [Wed, 20 Apr 2011 15:07:49 +0000 (17:07 +0200)]
reftests: Add grid-homogeneous test

Checks that the homogeneous properties of GtkGrid actually do what
they're supposed to.

Tests fixes from 8331b45a5fcbfb919a3bb02ccb93ac6d66c515b9

14 years agoreftests: Add a test for correct entry text clipping in progress drawing
Benjamin Otte [Tue, 19 Apr 2011 20:15:24 +0000 (22:15 +0200)]
reftests: Add a test for correct entry text clipping in progress drawing

Tests for fixes in da1f618b096973704bd0b7db071baa1444ef5c7b

14 years agoreftests: Add label-sizing test
Benjamin Otte [Sun, 17 Apr 2011 17:56:52 +0000 (19:56 +0200)]
reftests: Add label-sizing test

Checks that the size requests for labels are as they should be for
required and natural size given various combinations of wrap, ellipsize,
width-chars and max-width-chars.

See
http://mail.gnome.org/archives/gtk-devel-list/2011-April/msg00036.html
for the discussion spawning this test.

14 years agoreftests: Add
Benjamin Otte [Tue, 3 May 2011 07:44:45 +0000 (09:44 +0200)]
reftests: Add

Add a new test runner supposed to do a lot of generic tests. Run it like
this:

./gtk-reftest [OPTIONS] TESTFILE [TESTFILES...]

where FILE is a GtkBuilder ui file to run.

For a general test named "test", you want to have the following files:
1) test.ui
2) test.ref.ui
3) test.css (optional)
The test will then check that test.ui and test.ref.ui are rendered
identically with the provided css.

In detail, for every provided TESTFILE the test runner will:
1) Add the css to the default screen
2) Load the test.ui file and the test.ref.ui file
3) Grab the first GtkWindow subclass widget
4) gtk_widget_show() it and take a snapshot image of its contents into
   a cairo surface.
5) Compare the two images to be bitwise identical. If they are not, a
   diff image will be created hilighting the differences.
6) Save the images as png files to the output directory named:
   - test.out.png (rendering of test.ui)
   - test.ref.png (rendering of test.ref.ui)
   - test.diff.png (optional, differences from step 5)
7) Fail the test if the two images are not bitwise identical

Credit for the idea of reftests goes to Mozilla and in particular David
Baron. For a larger introduction of why reftests are useful, see
http://weblogs.mozillazine.org/roc/archives/2008/12/reftests.html

14 years agolabel: Allow using more underline modes
Benjamin Otte [Sun, 24 Apr 2011 23:48:59 +0000 (01:48 +0200)]
label: Allow using more underline modes

14 years agoGdkWindow: Add missing (allow-none) annotations
Martin Pitt [Tue, 3 May 2011 07:30:49 +0000 (09:30 +0200)]
GdkWindow: Add missing (allow-none) annotations

14 years agoaccellabel: Remove leftover debug code
Benjamin Otte [Mon, 2 May 2011 18:07:49 +0000 (20:07 +0200)]
accellabel: Remove leftover debug code

The disabling of the check was added in
63a0ab5e73a618e4fe907f69a1bd6a74cb399dc2

Ooops.

14 years agocellarea: Fix warning messages to display the right type
Benjamin Otte [Mon, 2 May 2011 16:36:14 +0000 (18:36 +0200)]
cellarea: Fix warning messages to display the right type

The warning displayed the type of the area instead of the cell
renderer's type before.